import request from '@/utils/request'
import Axios from 'axios'
export function get_system(){
  return request.get('/webapi?op=get_web_msg')
}

export function get_wan(){
  return request.get('/webapi?op=get_wan_config')
}

export function get_lan(){
  return request.get('/webapi?op=get_lan_config')
}

export function get_perm(){
  // return Axios.get(process.env.VUE_APP_PERM_PATH)
  // return request.get(process.env.VUE_APP_PERM_PATH, {
  //   params: {
  //     static: true,
  //   }
  // })
  return request.get(process.env.VUE_APP_PERM_PATH, {
    params: {
      static: true,
      time: new Date(),
    }
  })
}
